from dataclasses import dataclass
from typing import Optional


@dataclass
class Hero:
    id: str
    name: str
    birth: Optional[int]
    death: Optional[int]
    intro: str
    image: Optional[str]


@dataclass
class Battle:
    id: str
    name: str
    year: Optional[int]
    summary: str
    location: Optional[str]
    image: Optional[str]


@dataclass
class Message:
    id: str
    text: str
    author: Optional[str] = None

